home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-01-12 | 805 b | 15 lines | [TEXT/ToyS] |
- on DoUpdate()
- tell application "Finder" to set p to processes whose frontmost is true
- if p = {} then set p to application "Finder"
- dd set value of items 2 thru 3 of dialog 1 to [(application info for current application)'s name, (application info for p)'s name]
- end DoUpdate
-
- set dlog to {size:[400, 120], name:"Current Application", style:standard window, contents:[¬
- {class:push button, bounds:[320, 90, 380, 110], name:"Update", action:DoUpdate}, ¬
- {class:text field, bounds:[165, 20, 376, 36]}, ¬
- {class:text field, bounds:[165, 50, 376, 66]}, ¬
- {class:static text, bounds:[20, 20, 160, 36], contents:"Current Application:"}, ¬
- {class:static text, bounds:[20, 50, 160, 66], contents:"Front Application:"} ¬
- ], closeable:true}
-
- dd auto dialog dlog float above every application with grayscale